main(n)
{
	float f;
	for(gets(&n);~scanf("%f",&f);printf("%d\n",n-1))
		for(n=1;f>0;)f-=1./++n;
}
